{if $item.images}
{section name=image loop=$item.images}
	<div id="image{$smarty.section.image.index}" class="border_dashed">
		<div id="fileshow_images_{$smarty.section.image.index}">{if $item.images[image].src}<img src="{$item.images[image].src}_small.jpg" title="{$item.images[image].title}" />{else}<img src="{$smarty.const.I}noimage.gif" />{/if}</div>
		<a href="" onclick="del_item_attachment('video',{literal}{{/literal}'id':'{$item.images[image].pid}'{literal}}{/literal},'image{$item.images[image].id}','image{$smarty.section.image.index}');return false;">удалить этот файл</a><br class="clear" />
		<input type="hidden" name="item[images][{$smarty.section.image.index}][id]" value="{$item.images[image].id}" />
		<label for="image_file_{$smarty.section.image.index}">Загрузите файл</label>
		<input id="image_file_{$smarty.section.image.index}" type="file" name="item[images][{$smarty.section.image.index}][file]" /><br class="clear" />
		<label for="image_title_{$smarty.section.image.index}">Название изображения</label>
		<input id="image_title_{$smarty.section.image.index}" type="text" name="item[images][{$smarty.section.image.index}][title]" value="{$item.images[image].title}" /><br class="clear" />
		<label for="image_main_{$smarty.section.image.index}_1">Обложка</label><br />
		<input id="image_main_{$smarty.section.image.index}_0" type="hidden" name="item[images][{$smarty.section.image.index}][main]" value="0" /><input id="image_main_{$smarty.section.image.index}_1" type="checkbox" name="item[images][{$smarty.section.image.index}][main]" value="1"{if $item.images[image].main == '1'} checked="true"{/if} /> <br class="clear" />
		<span>Статус изображения</span><br />
		<input id="image_status_{$smarty.section.image.index}_2" type="radio" name="item[images][{$smarty.section.image.index}][status]" value="2"{if $item}{if $item.images[image].status == '2'} checked="true"{/if}{elseif !$item} checked="true"{/if} /> <label for="image_status_{$smarty.section.image.index}_2">Показать</label><br class="clear" />
		<input id="image_status_{$smarty.section.image.index}_1" type="radio" name="item[images][{$smarty.section.image.index}][status]" value="1"{if $item.images[image].status == '1'} checked="true"{/if} /> <label for="image_status_{$smarty.section.image.index}_1">Только пользователям</label><br class="clear" />
		<input id="image_status_{$smarty.section.image.index}_0" type="radio" name="item[images][{$smarty.section.image.index}][status]" value="0"{if $item.images[image].status == '0'} checked="true"{/if} /> <label for="image_status_{$smarty.section.image.index}_0">Скрыть</label><br class="clear" />
	</div>
{/section}
{else}
	<div id="image{$images_num}" class="border_dashed">
		<div id="fileshow_images_{$images_num}"><img src="{$smarty.const.I}noimage.gif" title="Изображение к фильму" /></div>
		<input type="hidden" name="item[images][{$images_num}][id]" value="0" />
		<label for="image_file_{$images_num}">Загрузите файл</label>
		<input id="image_file_{$images_num}" type="file" name="item[images][{$images_num}][file]" /><br class="clear" />
		<label for="image_title_{$images_num}">Название изображения</label>
		<input id="image_title_{$images_num}" type="text" name="item[images][{$images_num}][title]" value="" /><br class="clear" />
		<label for="image_main_{$images_num}_1">Обложка</label><br />
		<input id="image_main_{$images_num}_0" type="hidden" name="item[images][{$images_num}][main]" value="0" /><input id="image_main_{$images_num}_1" type="checkbox" name="item[images][{$images_num}][main]" value="1" /> <br class="clear" />
		<span>Статус изображения</span><br />
		<input id="image_status_{$images_num}_2" type="radio" name="item[images][{$images_num}][status]" value="2" checked="true" /> <label for="image_status_{$images_num}_2">Показать</label><br class="clear" />
		<input id="image_status_{$images_num}_1" type="radio" name="item[images][{$images_num}][status]" value="1" /> <label for="image_status_{$images_num}_1">Только пользователям</label><br class="clear" />
		<input id="image_status_{$images_num}_0" type="radio" name="item[images][{$images_num}][status]" value="0" /> <label for="image_status_{$images_num}_0">Скрыть</label><br class="clear" />
	</div>
{/if}
